		<div class="boxed">
			<h2 class="title">Prijava</h2>

			<div class="content">
				{% if user.is_authenticated %}
					<p>Dobrodošli natrag, {{ user.username }}</p>
					{% if messages %}
						<ul>
						{% for message in messages %}
							<li>{{ message }}</li>
						{% endfor %}
						</ul>
					{% endif %}
					<a href="logout">Odjavi se</a>
				{% else %}
					<form id="form1" method="post" action="login">
						<fieldset>
						<legend>Prijava</legend>
						<label for="id_username">Korisničko ime</label>
						<input id="id_username" type="text" name="username" value="" class="textfield" />
						<label for="id_username">Zaporka</label>
						<input id="id_password" type="password" name="password" value="" class="textfield" />
						<input id="id_login" type="submit" name="login" value="Prijavi se" class="button" />
						<input type="hidden" name="next" value="{{next}}" />
						<p class="tiny"><a href="#">Zaboravili ste zaporku?</a></p>
						</fieldset>
					</form>
				{% endif %}
			</div>
		</div>